<cfsilent>
	<cfset args = structNew() />
	<cfset args.currentUsername = "#getAuthUser()#" />
	<cfinvoke component="components.PersonGateway" method="getUserByUsername" returnvariable="queryUser" argumentCollection="#args#" />
</cfsilent>
<cfoutput>
	<div style="margin:10px;">
	<cfpod title="Profil von #getAuthUser()#" height="200" width="400">
		<form name="profileForm" action="../components/PersonGateway.cfc" method="post">
			<input type="hidden" name="method" value="updateUserByUsername" />
			<table class="no-border">
				<tr>
					<td>
						<label for="username">
							Benutzername
							<cftooltip tooltip="Kann nicht ge&auml;ndert werden!">(?)</cftooltip>
						</label>
					</td>
					<td>
						<input type="text" name="username" id="username" readonly="true" value="#getAuthUser()#" />
					</td>
				</tr>
				<tr>
					<td><label for="password">Neues Passwort</label></td>
					<td>
						<input type="password" name="password" id="password" value="" />
					</td>
				</tr>
				<tr>
					<td><label for="email">Email</label></td>
					<td>
						<input type="text" name="email" id="email" value="#queryUser.Email#" />
					</td>
				</tr>
				<tr>
					<td>
						<label for="step">
							Ernte Schritt
							<cftooltip tooltip="Aktueller Schritt bei der Quest 'Die Ewige Ernte'. Zur Zeit sind lediglich die Schritte mit Namensmonster relevant.">(?)</cftooltip>
						</label>
					</td>
					<td>
						<input type="text" name="step" id="step" value="#queryUser.CurrentStep#" />
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="hidden" name="isFormSubmitted" value="true" />
						<input type="submit" name="submit" value="Speichern" />
					</td>
				</tr>
			</table>
		</form>
	</cfpod>
	</div>
</cfoutput>